package com.gdzl_hadoop.pojo;

import java.io.Serializable;
import java.util.Objects;

public class Xzq implements Serializable {
    private Long id;

    private String xzqdm;

    private String xzqmc;

    private String xzqjb;

    private Integer level;

    private String parentid;

    public Xzq(Long id, String xzqdm, String xzqmc, String xzqjb, Integer level, String parentid) {
        this.id = id;
        this.xzqdm = xzqdm;
        this.xzqmc = xzqmc;
        this.xzqjb = xzqjb;
        this.level = level;
        this.parentid = parentid;
    }

    public Xzq(String xzqdm, String xzqmc) {
        this.xzqdm = xzqdm;
        this.xzqmc = xzqmc;
    }

    public Xzq(String xzqdm, String xzqmc, String xzqjb, String parentid) {

        this.xzqdm = xzqdm;
        this.xzqmc = xzqmc;
        this.xzqjb = xzqjb;
        this.parentid = parentid;
    }

    public Xzq() {
        super();
    }

    public Xzq(String xzqdm, String xzqmc, String parentid) {
        this.xzqdm = xzqdm;
        this.xzqmc = xzqmc;

        this.parentid = parentid;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getXzqdm() {
        return xzqdm;
    }

    public void setXzqdm(String xzqdm) {
        this.xzqdm = xzqdm == null ? null : xzqdm.trim();
    }

    public String getXzqmc() {
        return xzqmc;
    }

    public void setXzqmc(String xzqmc) {
        this.xzqmc = xzqmc == null ? null : xzqmc.trim();
    }

    public String getXzqjb() {
        return xzqjb;
    }

    public void setXzqjb(String xzqjb) {
        this.xzqjb = xzqjb == null ? null : xzqjb.trim();
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getParentid() {
        return parentid;
    }

    public void setParentid(String parentid) {
        this.parentid = parentid == null ? null : parentid.trim();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Xzq xzq = (Xzq) o;

        return xzqdm != null ? xzqdm.equals(xzq.xzqdm) : xzq.xzqdm == null;
    }

    @Override
    public int hashCode() {
        return xzqdm != null ? xzqdm.hashCode() : 0;
    }
}